package com.cai.seckill.controller;

import com.cai.seckill.common.vo.RespBean;
import com.cai.seckill.pojo.User;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 用户表 前端控制器
 * </p>
 *
 * @author Uli1024
 * @since 2022-08-04
 */
@RestController
@RequestMapping("/user")
public class UserController {

    /**
     * 优化前QPS：833.1944675887352/sec
     * @param user
     * @return
     */
    @RequestMapping("/info")
    @ResponseBody
    public RespBean info(User user) {
        return RespBean.success(user);
    }

}
